<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/9/23
 * Time: 9:48
 */
namespace app\share\controller;

use app\share\model\RedisCache;
use app\share\model\Task;

class Redis
{
    public function __construct()
    {
        $this->redis = new RedisCache();
    }
    //redis测试
    public function test()
    {
        $value =['name'=>"张三"];
        $this->redis->set("chuan",$value);
        dump($this->redis->get("chuan"));
    }
    //其他测试
    public function test1()
    {
        $task = new Task();
        return $task->test1();
    }
}